<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:111:"/Users/juyaobin/Desktop/clover_download/application/bbs_admin/view/articlemanagement/article_info_settings.html";i:1565487448;}*/ ?>
<!DOCTYPE html>
<html lang="en" data-textdirection="ltr" class="loading">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
    <meta name="description"
        content="Robust admin is super flexible, powerful, clean &amp; modern responsive bootstrap 4 admin template with unlimited possibilities.">
    <meta name="keywords"
        content="admin template, robust admin template, dashboard template, flat admin template, responsive admin template, web app">
    <meta name="author" content="PIXINVENT">
    <title>Basic Tables - Robust Free Bootstrap Admin Template</title>
    <script src="/public/jquery/jquery-3.3.1.min.js" type="text/javascript"></script>
    <link rel="apple-touch-icon" sizes="60x60" href="/public/bbs_admin/app-assets/images/ico/apple-icon-60.png">
    <link rel="apple-touch-icon" sizes="76x76" href="/public/bbs_admin/app-assets/images/ico/apple-icon-76.png">
    <link rel="apple-touch-icon" sizes="120x120" href="/public/bbs_admin/app-assets/images/ico/apple-icon-120.png">
    <link rel="apple-touch-icon" sizes="152x152" href="/public/bbs_admin/app-assets/images/ico/apple-icon-152.png">
    <link rel="shortcut icon" type="image/x-icon" href="/public/bbs_admin/app-assets/images/ico/favicon.ico">
    <link rel="shortcut icon" type="image/png" href="/public/bbs_admin/app-assets/images/ico/favicon-32.png">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="default">
    <!-- BEGIN VENDOR CSS-->
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/app-assets/css/bootstrap.css">
    <!-- font icons-->
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/app-assets/fonts/icomoon.css">
    <link rel="stylesheet" type="text/css"
        href="/public/bbs_admin/app-assets/fonts/flag-icon-css/css/flag-icon.min.css">
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/app-assets/vendors/css/extensions/pace.css">
    <!-- END VENDOR CSS-->
    <!-- BEGIN ROBUST CSS-->
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/app-assets/css/bootstrap-extended.css">
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/app-assets/css/app.css">
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/app-assets/css/colors.css">
    <!-- END ROBUST CSS-->
    <!-- BEGIN Page Level CSS-->
    <link rel="stylesheet" type="text/css"
        href="/public/bbs_admin/app-assets/css/core/menu/menu-types/vertical-menu.css">
    <link rel="stylesheet" type="text/css"
        href="/public/bbs_admin/app-assets/css/core/menu/menu-types/vertical-overlay-menu.css">
    <!-- END Page Level CSS-->
    <!-- BEGIN Custom CSS-->
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/assets/css/style.css">
    <!-- END Custom CSS-->
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/ArticleManagement/select/styles.css">
    <script src="/public/layui-v2.5.4/layui/layui.all.js"></script>
    <style>
        /* body {
            line-height: 24px;
            font: 14px Helvetica Neue, Helvetica, PingFang SC, \5FAE\8F6F\96C5\9ED1, Tahoma, Arial, sans-serif
        } */


        td {
            text-align: center;
            max-width: 400px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        th {
            text-align: center;
            max-width: 400px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>

    <!-- data_time request -->
    <link href="http://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="/public/bbs_admin/data_time/assets/theme/css/tempusdominus-bootstrap-4.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
                <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
                <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
            <![endif]-->
    <script type="text/javascript" src="/public/bbs_admin/data_time/js/moment-with-locales.min.js"></script>
    <script src="/public/bbs_admin/data_time/assets/theme/js/tempusdominus-bootstrap-4.js"></script>
    <script src="/public/bbs_admin/bootstrap/bootstrap/js/bootstrap.js"></script>
    <script src="/public/bbs_admin/bootstrap/bootstrap-select/js/bootstrap-select.js"></script>
    <link rel="stylesheet" href="/public/bbs_admin/bootstrap/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/public/bbs_admin/bootstrap/bootstrap-select/css/bootstrap-select.css">
    <link rel="stylesheet" type="text/css" href="/public/bbs_admin/datetime.css">
    <!-- data_time request end -->
    <!-- 富文本 -->
    <script charset="utf-8" src="/public/bbs/module/kindeditor/kindeditor-all.js"></script>
    <script charset="utf-8" src="/public/bbs/module/kindeditor/lang/zh-CN.js"></script>
    <!-- 富文本end -->
</head>

<body data-open="click" data-menu="vertical-menu" data-col="2-columns"
    class="vertical-layout vertical-menu 2-columns  fixed-navbar">

    <!-- navbar-fixed-top-->
    <nav class="header-navbar navbar navbar-with-menu navbar-fixed-top navbar-semi-dark navbar-shadow">
        <div class="navbar-wrapper">
            <div class="navbar-header">
                <ul class="nav navbar-nav">
                    <li class="nav-item mobile-menu hidden-md-up float-xs-left"><a
                            class="nav-link nav-menu-main menu-toggle hidden-xs"><i
                                class="icon-menu5 font-large-1"></i></a></li>
                    <li class="nav-item"><a href="index.html" class="navbar-brand nav-link"><img alt="branding logo"
                                src="/public/bbs_admin/app-assets/images/logo/robust-logo-light.png"
                                data-expand="/public/bbs_admin/app-assets/images/logo/robust-logo-light.png"
                                data-collapse="/public/bbs_admin/app-assets/images/logo/robust-logo-small.png"
                                class="brand-logo"></a></li>
                    <li class="nav-item hidden-md-up float-xs-right"><a data-toggle="collapse"
                            data-target="#navbar-mobile" class="nav-link open-navbar-container"><i
                                class="icon-ellipsis pe-2x icon-icon-rotate-right-right"></i></a></li>
                </ul>
            </div>
            <div class="navbar-container content container-fluid">
                <div id="navbar-mobile" class="collapse navbar-toggleable-sm">
                    <ul class="nav navbar-nav">
                        <li class="nav-item hidden-sm-down"><a class="nav-link nav-menu-main menu-toggle hidden-xs"><i
                                    class="icon-menu5"> </i></a></li>
                        <li class="nav-item hidden-sm-down"><a href="#" class="nav-link nav-link-expand"><i
                                    class="ficon icon-expand2"></i></a></li>
                        <li class="nav-item hidden-sm-down"><a
                                href="https://pixinvent.com/bootstrap-admin-template/robust/" target="_blank"
                                class="btn btn-success upgrade-to-pro">Upgrade to PRO $24</a></li>
                    </ul>
                    <ul class="nav navbar-nav float-xs-right">
                        <li class="dropdown dropdown-language nav-item"><a id="dropdown-flag" href="#"
                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
                                class="dropdown-toggle nav-link"><i class="flag-icon flag-icon-gb"></i><span
                                    class="selected-language">English</span></a>
                            <div aria-labelledby="dropdown-flag" class="dropdown-menu"><a href="#"
                                    class="dropdown-item"><i class="flag-icon flag-icon-gb"></i> English</a><a href="#"
                                    class="dropdown-item"><i class="flag-icon flag-icon-fr"></i> French</a><a href="#"
                                    class="dropdown-item"><i class="flag-icon flag-icon-cn"></i> Chinese</a><a href="#"
                                    class="dropdown-item"><i class="flag-icon flag-icon-de"></i> German</a></div>
                        </li>
                        <li class="dropdown dropdown-notification nav-item"><a href="#" data-toggle="dropdown"
                                class="nav-link nav-link-label"><i class="ficon icon-bell4"></i><span
                                    class="tag tag-pill tag-default tag-danger tag-default tag-up">5</span></a>
                            <ul class="dropdown-menu dropdown-menu-media dropdown-menu-right">
                                <li class="dropdown-menu-header">
                                    <h6 class="dropdown-header m-0"><span
                                            class="grey darken-2">Notifications</span><span
                                            class="notification-tag tag tag-default tag-danger float-xs-right m-0">5
                                            New</span></h6>
                                </li>
                                <li class="list-group scrollable-container"><a href="javascript:void(0)"
                                        class="list-group-item">
                                        <div class="media">
                                            <div class="media-left valign-middle"><i
                                                    class="icon-cart3 icon-bg-circle bg-cyan"></i></div>
                                            <div class="media-body">
                                                <h6 class="media-heading">You have new order!</h6>
                                                <p class="notification-text font-small-3 text-muted">Lorem ipsum dolor
                                                    sit amet, consectetuer elit.</p><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">30 minutes ago</time></small>
                                            </div>
                                        </div>
                                    </a><a href="javascript:void(0)" class="list-group-item">
                                        <div class="media">
                                            <div class="media-left valign-middle"><i
                                                    class="icon-monitor3 icon-bg-circle bg-red bg-darken-1"></i></div>
                                            <div class="media-body">
                                                <h6 class="media-heading red darken-1">99% Server load</h6>
                                                <p class="notification-text font-small-3 text-muted">Aliquam tincidunt
                                                    mauris eu risus.</p><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">Five hour ago</time></small>
                                            </div>
                                        </div>
                                    </a><a href="javascript:void(0)" class="list-group-item">
                                        <div class="media">
                                            <div class="media-left valign-middle"><i
                                                    class="icon-server2 icon-bg-circle bg-yellow bg-darken-3"></i></div>
                                            <div class="media-body">
                                                <h6 class="media-heading yellow darken-3">Warning notifixation</h6>
                                                <p class="notification-text font-small-3 text-muted">Vestibulum auctor
                                                    dapibus neque.</p><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">Today</time></small>
                                            </div>
                                        </div>
                                    </a><a href="javascript:void(0)" class="list-group-item">
                                        <div class="media">
                                            <div class="media-left valign-middle"><i
                                                    class="icon-check2 icon-bg-circle bg-green bg-accent-3"></i></div>
                                            <div class="media-body">
                                                <h6 class="media-heading">Complete the task</h6><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">Last week</time></small>
                                            </div>
                                        </div>
                                    </a><a href="javascript:void(0)" class="list-group-item">
                                        <div class="media">
                                            <div class="media-left valign-middle"><i
                                                    class="icon-bar-graph-2 icon-bg-circle bg-teal"></i></div>
                                            <div class="media-body">
                                                <h6 class="media-heading">Generate monthly report</h6><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">Last month</time></small>
                                            </div>
                                        </div>
                                    </a></li>
                                <li class="dropdown-menu-footer"><a href="javascript:void(0)"
                                        class="dropdown-item text-muted text-xs-center">Read all notifications</a></li>
                            </ul>
                        </li>
                        <li class="dropdown dropdown-notification nav-item"><a href="#" data-toggle="dropdown"
                                class="nav-link nav-link-label"><i class="ficon icon-mail6"></i><span
                                    class="tag tag-pill tag-default tag-info tag-default tag-up">8</span></a>
                            <ul class="dropdown-menu dropdown-menu-media dropdown-menu-right">
                                <li class="dropdown-menu-header">
                                    <h6 class="dropdown-header m-0"><span class="grey darken-2">Messages</span><span
                                            class="notification-tag tag tag-default tag-info float-xs-right m-0">4
                                            New</span></h6>
                                </li>
                                <li class="list-group scrollable-container"><a href="javascript:void(0)"
                                        class="list-group-item">
                                        <div class="media">
                                            <div class="media-left"><span
                                                    class="avatar avatar-sm avatar-online rounded-circle"><img
                                                        src="/public/bbs_admin/app-assets/images/portrait/small/avatar-s-1.png"
                                                        alt="avatar"><i></i></span></div>
                                            <div class="media-body">
                                                <h6 class="media-heading">Margaret Govan</h6>
                                                <p class="notification-text font-small-3 text-muted">I like your
                                                    portfolio, let's start the project.</p><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">Today</time></small>
                                            </div>
                                        </div>
                                    </a><a href="javascript:void(0)" class="list-group-item">
                                        <div class="media">
                                            <div class="media-left"><span
                                                    class="avatar avatar-sm avatar-busy rounded-circle"><img
                                                        src="/public/bbs_admin/app-assets/images/portrait/small/avatar-s-2.png"
                                                        alt="avatar"><i></i></span></div>
                                            <div class="media-body">
                                                <h6 class="media-heading">Bret Lezama</h6>
                                                <p class="notification-text font-small-3 text-muted">I have seen your
                                                    work, there is</p><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">Tuesday</time></small>
                                            </div>
                                        </div>
                                    </a><a href="javascript:void(0)" class="list-group-item">
                                        <div class="media">
                                            <div class="media-left"><span
                                                    class="avatar avatar-sm avatar-online rounded-circle"><img
                                                        src="/public/bbs_admin/app-assets/images/portrait/small/avatar-s-3.png"
                                                        alt="avatar"><i></i></span></div>
                                            <div class="media-body">
                                                <h6 class="media-heading">Carie Berra</h6>
                                                <p class="notification-text font-small-3 text-muted">Can we have call in
                                                    this week ?</p><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">Friday</time></small>
                                            </div>
                                        </div>
                                    </a><a href="javascript:void(0)" class="list-group-item">
                                        <div class="media">
                                            <div class="media-left"><span
                                                    class="avatar avatar-sm avatar-away rounded-circle"><img
                                                        src="/public/bbs_admin/app-assets/images/portrait/small/avatar-s-6.png"
                                                        alt="avatar"><i></i></span></div>
                                            <div class="media-body">
                                                <h6 class="media-heading">Eric Alsobrook</h6>
                                                <p class="notification-text font-small-3 text-muted">We have project
                                                    party this saturday night.</p><small>
                                                    <time datetime="2015-06-11T18:29:20+08:00"
                                                        class="media-meta text-muted">last month</time></small>
                                            </div>
                                        </div>
                                    </a></li>
                                <li class="dropdown-menu-footer"><a href="javascript:void(0)"
                                        class="dropdown-item text-muted text-xs-center">Read all messages</a></li>
                            </ul>
                        </li>
                        <li class="dropdown dropdown-user nav-item"><a href="#" data-toggle="dropdown"
                                class="dropdown-toggle nav-link dropdown-user-link"><span
                                    class="avatar avatar-online"><img
                                        src="/public/bbs_admin/app-assets/images/portrait/small/avatar-s-1.png"
                                        alt="avatar"><i></i></span><span class="user-name">John Doe</span></a>
                            <div class="dropdown-menu dropdown-menu-right"><a href="#" class="dropdown-item"><i
                                        class="icon-head"></i> Edit Profile</a><a href="#" class="dropdown-item"><i
                                        class="icon-mail6"></i> My Inbox</a><a href="#" class="dropdown-item"><i
                                        class="icon-clipboard2"></i> Task</a><a href="#" class="dropdown-item"><i
                                        class="icon-calendar5"></i> Calender</a>
                                <div class="dropdown-divider"></div><a href="#" class="dropdown-item"><i
                                        class="icon-power3"></i> Logout</a>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>

    <!-- ////////////////////////////////////////////////////////////////////////////-->


    <?php echo $head; ?>

    <div class="app-content content container-fluid">
        <div class="content-wrapper">
            <div class="content-header row">
                <div class="content-header-left col-md-6 col-xs-12 mb-1">
                    <h2 class="content-header-title"></h2>
                </div>
                <div class="content-header-right breadcrumbs-right breadcrumbs-top col-md-6 col-xs-12">
                    <div class="breadcrumb-wrapper col-xs-12">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="index.html">控制台</a>
                            </li>
                            <li class="breadcrumb-item"><a href="#">文章管理</a>
                            </li>
                            <li class="breadcrumb-item active">查看文章列表
                            </li>
                        </ol>
                    </div>
                </div>
            </div>

            <section id="basic-form-layouts">
                <div class="row match-height">
                    <div class="col-md-6">
                        <div class="card" style="height: 1068px;" data-height="">
                            <div class="card-header">
                                <h4 class="card-title" id="basic-layout-form">文章基本信息</h4>
                                <a class="heading-elements-toggle"><i class="icon-ellipsis font-medium-3"></i></a>
                                <div class="heading-elements">
                                    <ul class="list-inline mb-0">
                                        <li><a data-action="collapse"><i class="icon-minus4"></i></a></li>
                                        <li><a data-action="expand"><i class="icon-expand2"></i></a></li>
                                        <li><a data-action="close"><i class="icon-cross2"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="card-body collapse in" aria-expanded="true">
                                <div class="card-block">
                                    <div class="card-text">
                                        <p>这里是文章的基本信息可以修改 <code>基本的属性</code> 可以修改 <code> 以下属性 </code></p>
                                        ⚠️注意<code> 如果不修改信息直接保存会出现保存失败 </code>
                                    </div>
                                    <form class="form">
                                        <div id='essential_information' class="form-body">
                                            <h4 class="form-section"><i class="icon-clipboard4"></i> 基本信息</h4>
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div class="form-group">
                                                        <label for="projectinput1">标题</label>
                                                        <input type="text" id="essential_information_title"
                                                            class="form-control" placeholder="标题"
                                                            value='<?php echo $info["title"]; ?>' name="title">
                                                    </div>
                                                </div>

                                            </div>
                                            <div class="row">
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label for="projectinput3">可否编辑</label>
                                                        <select id="essential_information_edit_or_not" name="budget"
                                                            class="form-control">
                                                            <?php if(($info['edit_or_not'] == 0)): ?>
                                                            <option value="0" selected="">允许</option>
                                                            <?php else: ?>
                                                            <option value="0">允许</option>
                                                            <?php endif; if(($info['edit_or_not'] == 1)): ?>
                                                            <option selected="" value="1">禁止</option>
                                                            <?php else: ?>
                                                            <option value="1">禁止</option>
                                                            <?php endif; ?>

                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label for="projectinput3">可否评论</label>
                                                        <select id="essential_information_are_comments_allowed"
                                                            name="budget" class="form-control">
                                                            <?php if(($info['are_comments_allowed'] == 1)): ?>
                                                            <option value="1" selected="">允许</option>
                                                            <option value="0">禁止</option>
                                                            <?php else: ?>
                                                            <option value="1">允许</option>
                                                            <option value="0" selected="">禁止</option>
                                                            <?php endif; ?>


                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label for="projectinput4">阅读权限</label>
                                                        <select id="essential_information_bbs_jurisdiction_level"
                                                            name="budget" class="form-control">
                                                            <?php if(is_array($bbs_jurisdiction_level) || $bbs_jurisdiction_level instanceof \think\Collection || $bbs_jurisdiction_level instanceof \think\Paginator): $i = 0; $__LIST__ = $bbs_jurisdiction_level;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(($info['permission_to_read'] ==
                                                            $vo['jurisdiction_number'])): ?>
                                                            <option selected="" value="<?php echo $vo['jurisdiction_number']; ?>">
                                                                <?php echo $vo['level_name']; ?> --- <?php echo $vo['jurisdiction_number']; ?>
                                                            </option>
                                                            <?php else: ?>
                                                            <option value="<?php echo $vo['jurisdiction_number']; ?>">
                                                                <?php echo $vo['level_name']; ?> --- <?php echo $vo['jurisdiction_number']; ?>
                                                            </option>
                                                            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label for="projectinput4">是否置顶</label>
                                                        <select id="essential_information_top" name="budget"
                                                            class="form-control">
                                                            <?php if(($info['top'] == 0)): ?>
                                                            <option value="0" selected="">否</option>
                                                            <?php else: ?>
                                                            <option value="0">否</option>
                                                            <?php endif; if(($info['top'] == 1)): ?>
                                                            <option value="1" selected="">是</option>
                                                            <?php else: ?>
                                                            <option value="1">是</option>
                                                            <?php endif; ?>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="col-md-12">
                                                    <div class="form-group">
                                                        <label for="projectinput4">置顶时间</label>
                                                        <!-- 时间 -->
                                                        <div class="container">
                                                            <div class="row">
                                                                <div>
                                                                    <div class="form-group">
                                                                        <div class="input-group date"
                                                                            id="datetimepicker_end"
                                                                            data-target-input="nearest">
                                                                            <input type="text"
                                                                                value='<?php echo $info["top_time"]; ?>'
                                                                                id='essential_information_top_time'
                                                                                class="form-control datetimepicker-input"
                                                                                data-target="#datetimepicker_end" />
                                                                            <div class="input-group-append"
                                                                                data-target="#datetimepicker_end"
                                                                                data-toggle="datetimepicker">
                                                                                <div class="input-group-text">
                                                                                    <i class="fa fa-calendar"></i>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <script type="text/javascript">
                                                                    $(function () {
                                                                        $('#datetimepicker_end')
                                                                            .datetimepicker({
                                                                                locale: 'zh-cn'
                                                                            });
                                                                    });
                                                                </script>
                                                            </div>
                                                        </div>
                                                        <!-- 时间end -->
                                                    </div>
                                                </div>
                                            </div>


                                        </div>

                                        <div class="form-actions right">
                                            <button type="button" onclick="essential_information()"
                                                class="btn btn-primary">
                                                <i class="icon-check2"></i> 保存
                                            </button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                    <script>
                        function essential_information() {
                            $.ajax({
                                type: "POST",
                                url: "./article_info_settings_save_essential_information",
                                data: {
                                    id: '<?php echo $get_id; ?>',
                                    title: $('#essential_information_title').val(),
                                    edit_or_not: $('#essential_information_edit_or_not').val(),
                                    are_comments_allowed: $('#essential_information_are_comments_allowed')
                                        .val(),
                                    permission_to_read: $('#essential_information_bbs_jurisdiction_level')
                                        .val(),
                                    top: $('#essential_information_top').val(),
                                    top_time: $('#essential_information_top_time').val(),
                                },
                                dataType: "json",
                                success: function (response) {
                                    if (response.code) {
                                        history.go(0);
                                        alert('保存成功')
                                    } else {
                                        alert('修改失败-可能未作任何修改')
                                    }
                                }
                            });

                        }
                    </script>
                    <div class="col-md-6">
                        <div class="card" style="height: 1068px;">
                            <div class="card-header">
                                <h4 class="card-title" id="basic-layout-colored-form-control">文章内容编辑</h4>
                                <a class="heading-elements-toggle"><i class="icon-ellipsis font-medium-3"></i></a>
                                <div class="heading-elements">
                                    <ul class="list-inline mb-0">
                                        <li><a data-action="collapse"><i class="icon-minus4"></i></a></li>
                                        <li><a data-action="expand"><i class="icon-expand2"></i></a></li>
                                        <li><a data-action="close"><i class="icon-cross2"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="card-body collapse in">
                                <div class="card-block">

                                    <div class="card-text">
                                        <p>在这里可以修改文章的<code>内容</code> 请注意这是
                                            <code>在不通知用户的前提下修改</code>的
                                            <br>
                                            <br>
                                        </p>
                                    </div>

                                    <form class="form">
                                        <div class="form-body">
                                            <h4 class="form-section"><i class="icon-eye6"></i>内容</h4>
                                            <div class="layui-form layui-form-pane">
                                                <div class="layui-form-item layui-form-text">
                                                    <div class="layui-input-block">
                                                        <textarea id="textarea" name="content"
                                                            style="width:700px;height:300px;">
                                                        <?php echo $info['content']; ?>
                                                        </textarea>
                                                    </div>
                                                </div>

                                            </div>

                                        </div>

                                        <div class="form-actions right">
                                            <button type="button" onclick="save_content()" class="btn btn-primary">
                                                <i class="icon-check2"></i> Save
                                            </button>
                                        </div>
                                    </form>

                                </div>
                            </div>
                        </div>
                    </div>
                    <script>
                        function save_content() {

                            html = editor.html();
                            $.ajax({
                                type: "POST",
                                url: "./article_info_settings_save_content",
                                data: {
                                    id: '<?php echo $get_id; ?>',
                                    content: html
                                },
                                dataType: "JSON",
                                success: function (response) {
                                    if (response.code) {
                                        alert('保存成功');
                                    } else {
                                        alert('保存失败');
                                    }
                                }
                            });
                        }
                    </script>
                </div>
                <div class="row match-height">
                    <div class="col-md-6">
                        <div class="card" style="height: 936px;">
                            <div class="card-header">
                                <h4 class="card-title" id="basic-layout-tooltip">扩展设置-基本属性</h4>
                                <a class="heading-elements-toggle"><i class="icon-ellipsis font-medium-3"></i></a>
                                <div class="heading-elements">
                                    <ul class="list-inline mb-0">
                                        <li><a data-action="collapse"><i class="icon-minus4"></i></a></li>
                                        <li><a data-action="expand"><i class="icon-expand2"></i></a></li>
                                        <li><a data-action="close"><i class="icon-cross2"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="card-body collapse in">
                                <div class="card-block">

                                    <div class="card-text">
                                        <p>在这里可以修改很多基础的属性 如 <code>分类</code>、<code>标签</code></p>
                                    </div>

                                    <form class="form">
                                        <h4 class="form-section"><i class="icon-eye6"></i>分类设置</h4>
                                        <div class="form-body">
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label for="projectinput4">当前分类</label>
                                                    <select disabled
                                                        id="Extended_Settings_Super_Settings_Article_Current_Classification"
                                                        name="budget" class="form-control">
                                                        <option value="<?php echo $info['class_id']; ?>"><?php echo $info['son_class_name']; ?>
                                                        </option>

                                                    </select>
                                                </div>
                                            </div>
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label for="projectinput4">目标分类</label>

                                                    <div class="form-group">
                                                        <select name="class_list" class="selectpicker"
                                                            id="Extended_Settings_Super_Settings_Article_New_Classification"
                                                            data-live-search="true" data-live-search-placeholder="搜索"
                                                            data-actions-box="true">
                                                            <?php if(is_array($bbs_classification_main) || $bbs_classification_main instanceof \think\Collection || $bbs_classification_main instanceof \think\Paginator): $i = 0; $__LIST__ = $bbs_classification_main;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                            <optgroup label="<?php echo $vo['class_name']; ?>">
                                                                <?php if(is_array($vo['son']) || $vo['son'] instanceof \think\Collection || $vo['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$son): $mod = ($i % 2 );++$i;if($son['id'] == $info['class_id']): ?>
                                                                <option selected value="<?php echo $son['id']; ?>"><?php echo $son['son_class_name']; ?>
                                                                </option>
                                                                <?php else: ?>
                                                                <option value="<?php echo $son['id']; ?>"><?php echo $son['son_class_name']; ?></option>
                                                                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                                            </optgroup>
                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label for="issueinput3">用户评论通知</label>
                                                    <select
                                                        id="Extended_Settings_Super_Settings_Comment_Email_Notification"
                                                        class="form-control">
                                                        <?php if(($info['comment_email_notification'] == 0)): ?>
                                                        <option selected value="0">
                                                            关闭
                                                        </option>
                                                        <?php else: ?>
                                                        <option value="0">
                                                            关闭
                                                        </option>
                                                        <?php endif; if(($info['comment_email_notification'] == 1)): ?>
                                                        <option selected value="1">
                                                            开启
                                                        </option>
                                                        <?php else: ?>
                                                        <option value="1">
                                                            开启
                                                        </option>
                                                        <?php endif; ?>

                                                    </select>
                                                </div>
                                            </div>
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label for="issueinput4">通知邮箱</label>
                                                    <input disabled type="text" value="<?php echo $info['email']; ?>"
                                                        class='form-control'>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <fieldset style="text-align: center" id='whether_to_notify_the_user'
                                                    tabindex="0" class='radioGroup'>
                                                    <legend>是否通知用户:</legend>
                                                    <input id='true' name="group1" value="1" type="radio">
                                                    <label for='true'>是</label>
                                                    <input id='false' name="group1" value="0" type="radio">
                                                    <label for='false'>否</label>
                                                </fieldset>
                                            </div>
                                        </div>
                                        <div class="form-actions right">
                                            <button onclick='Extended_Settings_Super_Settings()' type="button"
                                                class="btn btn-primary">
                                                <i class="icon-check2"></i> 保存
                                            </button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                    <script>
                        $("[name$='group1']").click(function (e) {
                            $('#whether_to_notify_the_user').data('whether_to_notify_the_user', e.currentTarget
                                .id);
                        });

                        function Extended_Settings_Super_Settings() {
                            layer.msg('加载中', {
                                icon: 16,
                                shade: 0.5,
                                time: 99999999,
                            });
                            if ($('#whether_to_notify_the_user').data('whether_to_notify_the_user') == undefined) {
                                alert('请选择是否通知用户');
                            }
                            $.ajax({
                                type: "POST",
                                url: "./article_info_settings_extended_settings_super_settings",
                                data: {
                                    id: '<?php echo $get_id; ?>',
                                    class_id: $('#Extended_Settings_Super_Settings_Article_New_Classification')
                                        .val(),
                                    comment_email_notification: $(
                                            '#Extended_Settings_Super_Settings_Comment_Email_Notification')
                                        .val(),
                                    whether_to_notify_the_user: $('#whether_to_notify_the_user').data(
                                        'whether_to_notify_the_user'),
                                },
                                dataType: "JSON",
                                success: function (response) {
                                    layer.closeAll();
                                    if (response.code) {
                                        alert('修改成功');
                                        history.go(0);
                                    } else {
                                        alert('修改失败 原因 -- ' + response.msg);
                                    }
                                }
                            });
                        }
                    </script>
                    <div class="col-md-6">
                        <div class="card" style="height: 936px;">
                            <div class="card-header">
                                <h4 class="card-title" id="basic-layout-icons">扩展设置-超级设置</h4>
                                <a class="heading-elements-toggle"><i class="icon-ellipsis font-medium-3"></i></a>
                                <div class="heading-elements">
                                    <ul class="list-inline mb-0">
                                        <li><a data-action="collapse"><i class="icon-minus4"></i></a></li>
                                        <li><a data-action="expand"><i class="icon-expand2"></i></a></li>
                                        <li><a data-action="close"><i class="icon-cross2"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="card-body collapse in">
                                <div class="card-block">

                                    <div class="card-text">
                                        <p>注意修改本选项的内容会<code>通过邮件</code>方式通知本篇文章的<code>原主人</code></p>
                                    </div>

                                    <form class="form">
                                        <div class="form-body">
                                            <h4 class="form-section"><i class="icon-head"></i>用户设置</h4>

                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label for="projectinput4">当前用户组</label>
                                                    <select disabled
                                                        id="Extended_Settings_Super_Settings_Current_User_Group"
                                                        class="form-control">
                                                        <option value="<?php echo $info['id']; ?>"><?php echo $info['user_name']; ?> ---
                                                            <?php echo $info['email']; ?>
                                                        </option>

                                                    </select>
                                                </div>
                                            </div>
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label for="projectinput4">目标用户</label>
                                                    <div onclick="Get_User_list()" class="form-group">
                                                        <select data-one='true'
                                                            id="Extended_Settings_Super_Settings_New_User_Group"
                                                            class="selectpicker" data-live-search="true"
                                                            data-live-search-placeholder="搜索" data-actions-box="true">
                                                            <option value="<?php echo $info['user_name']; ?>"><?php echo $info['user_name']; ?> ---
                                                                <?php echo $info['email']; ?>
                                                            </option>
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="form-group">
                                                    <label for="timesheetinput2">变更用户组理由</label>
                                                    <div class="position-relative has-icon-left">

                                                        <div class="layui-form layui-form-pane">
                                                            <div class="layui-form-item layui-form-text">
                                                                <div class="layui-input-block">
                                                                    <textarea
                                                                        id="Extended_Settings_Super_Settings_Reason"
                                                                        name="content" style="width:700px;">
                                                                    </textarea>
                                                                </div>
                                                            </div>

                                                        </div>

                                                    </div>
                                                </div>
                                            </div>
                                            <div id='start' class="col-md-6">
                                                文章状态
                                                <select id="Extended_Settings_Super_Settings_Current_Select" name="budget"
                                                    class="form-control">
                                                    <?php if($info['start'] == 0): ?>
                                                    <option selected='' value="0">正常</option>
                                                    <?php else: ?>
                                                    <option value="0">正常</option>
                                                    <?php endif; if($info['start'] == 1): ?>
                                                    <option selected='' value="1">用户删除</option>
                                                    <?php else: ?>
                                                    <option value="1">用户删除</option>
                                                    <?php endif; if($info['start'] == 2): ?>
                                                    <option selected='' value="2">管理员删除</option>
                                                    <?php else: ?>
                                                    <option value="2">管理员删除</option>
                                                    <?php endif; if($info['start'] == 3): ?>
                                                    <option selected='' value="3">隐藏登陆显示</option>
                                                    <?php else: ?>
                                                    <option value="3">隐藏登陆显示</option>
                                                    <?php endif; if($info['start'] == 4): ?>
                                                    <option selected='' value="4">待审核</option>
                                                    <?php else: ?>
                                                    <option value="4">待审核</option>
                                                    <?php endif; ?>
                                                </select>
                                            </div>

                                        </div>

                                        <div class="form-actions right">
                                            <button onclick="Extended_Settings_Super_Settings_Extended_Settings()"
                                                type="button" class="btn btn-primary">
                                                <i class="icon-check2"></i> 保存
                                            </button>
                                        </div>
                                    </form>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </section>

        </div>
    </div>
    <!-- ////////////////////////////////////////////////////////////////////////////-->


    <footer class="footer footer-static footer-light navbar-border">
        <p class="clearfix text-muted text-sm-center mb-0 px-2"><span
                class="float-md-left d-xs-block d-md-inline-block">Copyright &copy; 2017 <a
                    href="https://themeforest.net/user/pixinvent/portfolio?ref=pixinvent" target="_blank"
                    class="text-bold-800 grey darken-2">PIXINVENT </a>, All rights reserved. </span><span
                class="float-md-right d-xs-block d-md-inline-block">Hand-crafted & Made with <i
                    class="icon-heart5 pink"></i></span></p>
    </footer>

    <!-- BEGIN VENDOR JS-->
    <script src="/public/bbs_admin/app-assets/vendors/js/ui/tether.min.js" type="text/javascript"></script>
    <script src="/public/bbs_admin/app-assets/vendors/js/ui/unison.min.js" type="text/javascript"></script>
    <script src="/public/bbs_admin/app-assets/vendors/js/ui/blockUI.min.js" type="text/javascript"></script>
    <script src="/public/bbs_admin/app-assets/vendors/js/ui/jquery.matchHeight-min.js" type="text/javascript"></script>
    <script src="/public/bbs_admin/app-assets/vendors/js/ui/screenfull.min.js" type="text/javascript"></script>
    <script src="/public/bbs_admin/app-assets/vendors/js/extensions/pace.min.js" type="text/javascript"></script>
    <!-- BEGIN VENDOR JS-->
    <!-- BEGIN PAGE VENDOR JS-->
    <!-- END PAGE VENDOR JS-->
    <!-- BEGIN ROBUST JS-->
    <script src="/public/bbs_admin/app-assets/js/core/app-menu.js" type="text/javascript"></script>
    <script src="/public/bbs_admin/app-assets/js/core/app.js" type="text/javascript"></script>
    <!-- END ROBUST JS-->
    <!-- BEGIN PAGE LEVEL JS-->
    <!-- END PAGE LEVEL JS-->

    <script src="/public/bbs_admin/app-assets/js/core/libraries/bootstrap.min.js" type="text/javascript"></script>
    <!-- 和下拉框冲突 已修复 -->
    <script>
        var editor;
        var Extended_Settings_Super_Settings_Reason;
        KindEditor.ready(function (K) {
            editor = K.create('#textarea', {
                resizeType: 2,
                width: "100%",
                height: '393px',
                uploadJson: '<?php echo url("upload/index/image_upload"); ?>', // 相对于当前页面的路径
                newlineTag: 'br', //回车换行br|p
            });
        });
        KindEditor.ready(function (K) {
            Extended_Settings_Super_Settings_Reason = K.create('#Extended_Settings_Super_Settings_Reason', {
                resizeType: 2,
                width: "100%",
                height: '225px',
                uploadJson: '<?php echo url("upload/index/image_upload"); ?>', // 相对于当前页面的路径
                newlineTag: 'br', //回车换行br|p
            });
        });

        function Get_User_list() {
            if ($('#Extended_Settings_Super_Settings_New_User_Group').data('one')) {
                $.ajax({
                    type: "POST",
                    url: "./Extended_Settings_Super_Settings_Get_User_list",
                    dataType: "JSON",
                    success: function (response) {

                        var html = '';
                        response.data.list.forEach(value => {
                            html += '<optgroup label="' + value.level_name + '">';
                            value.user_list.forEach(user_list => {
                                html += '<option>' + user_list.user_name + '</option>';
                            });
                            html += ' </optgroup>';
                        });
                        $('#Extended_Settings_Super_Settings_New_User_Group').empty();
                        $('#Extended_Settings_Super_Settings_New_User_Group').append(html);
                        $('#Extended_Settings_Super_Settings_New_User_Group').data('one',
                            false); //第一次点击完设置一个属性
                        $('#Extended_Settings_Super_Settings_New_User_Group').selectpicker('refresh');
                        $('#Extended_Settings_Super_Settings_New_User_Group').selectpicker('render');
                    }
                });
            }
        }

        function Extended_Settings_Super_Settings_Extended_Settings() {
            layer.msg('加载中', {
                icon: 16,
                shade: 0.5,
                time: 99999999,
            });
            html = Extended_Settings_Super_Settings_Reason.html();
            $.ajax({
                type: "POST",
                url: "./article_info_settings_extended_settings_super_settings_extended_settings",
                data: {
                    id: '<?php echo $get_id; ?>',
                    //当前用户组
                    Current_User_Group: $('#Extended_Settings_Super_Settings_Current_User_Group').val(),
                    //目标用户
                    New_User_Group: $('#Extended_Settings_Super_Settings_New_User_Group').val(),
                    //阅读权限
                    Extended_Settings_Super_Settings_Current_Select:$('#Extended_Settings_Super_Settings_Current_Select').val(),
                    //变更用户组理由
                    Reason: html
                },
                dataType: "JSON",
                success: function (response) {
                    layer.closeAll();
                    if (response.code) {
                        alert('修改成功')
                        history.go(0);
                    } else {
                        alert('修改失败 可能原因 ' + response.msg)
                    }
                }
            });
        }
    </script>
</body>

</html>